*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body{
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.main{
    position: relative;
    width: 400px;
    height: 270px;
    overflow: hidden;
}
.main .box{
    position: absolute;
    width: 2400px;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(6,1fr);
    transition: 1s;
}
.main .box .img{
    width: 100%;
    height: 100%;
}


